Repository navigation
crypto: the removed-name message tests hold on every clang the CI runs - #22
Merged
Merged
Conversation
ph_removed, async_seal_removed and seal_removed_call failed on Clang 18 and Apple Clang 17 (webcpp run 47012218351): their -verify directives held what Clang 22 alone reports. - ph_removed: Clang 22 corrects ::begin to std::begin and adds the failed call of the correction; Clang 18 and Apple Clang 17 do not. That knock-on is now 0-1. - async_seal_removed: clang's "did you mean" after the removed name is its typo correction, which differs by version: Clang 18 and Apple Clang 17 offer secret_key_encryption::aead::async_seal and async_open, the right forms, and compile the corrected calls; Clang 22 offers the box forms and adds a failed call each. The test pins the missing name, the knock-on is 0-1, and the program links AES-GCM's default backend, as a program that calls it does: unlinked, the corrected calls instantiated the engine and stopped at its not-linked static_assert and the errors after it. - seal_removed_call: Clang 18 and Apple Clang 17 correct the calls to aead::seal and open, which instantiated ChaCha20-Poly1305's engine on an unlinked default; the program links it. The page's fix of async_seal_removed says which clang offers which form. generate.py reads a directive's range of counts (1+, 0-1), and generate_test.py runs the four cases it declared but did not list, the new one among them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three message tests failed on Clang 18 and Apple Clang 17 in webcpp's main CI (run 47012218351). Their
-verifyexpectations held what only Clang 22 reports.ph_removed: Clang 22 corrects::begintostd::beginand then reports the failed call of that correction. Clang 18 and Apple Clang 17 do not report it. That knock-on is now0-1.async_seal_removed: clang's "did you mean" is its typo correction, and it differs by version. Clang 18 and Apple Clang 17 offersecret_key_encryption::aead::async_seal/async_open(the right forms) and compile the corrected calls. Clang 22 offers the box forms and adds one failed call each. The test now pins the missing name, and the knock-on is0-1. The program also linksgcm-default, as a real caller would: without it, the corrected calls hit the engine's not-linkedstatic_assertand the errors after it.seal_removed_call: Clang 18 and Apple Clang 17 correct the calls toaead::seal/open, which instantiated ChaCha20-Poly1305's engine on an unlinked default. The program now linkschacha20_poly1305-default.The page's fix note for
async_seal_removednow says which clang offers which form (crypto.json;messages.adocregenerated).generate.pyreads a directive's range of counts (1+,0-1).generate_test.pynow runs four cases it declared but never listed, including a new one for ranges.Other message tests: CI already runs every one on Clang 18 and 22, Apple Clang 17 and wasi-sdk. I also ran the whole
test/messagesdirectory through b2 on Clang 18 (Linux) and on Apple Clang 21 (an intermediate version), and the three changed tests on wasip2. All pass, so no other test depends on one clang's typo correction or recovery.Verified: b2
libs/crypto/test/messageswith clang-18 (all pass), with Apple Clang 21 (all pass), the three affected tests on wasip2,-verifyof the three with Clang 22.1.2,generate_test.py,generate.py --check, and the lint.🤖 Generated with Claude Code